<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title></title>
<link href="Public/Admin/css/style.css" type="text/css" rel="stylesheet" />
<link href="Public/Admin/css/skin/fonts/font-awesome.min.css" type="text/css" rel="stylesheet" />
<script type="text/javascript" src="Public/Admin/js/jquery-1.9.1.min.js"></script>
<script type="text/javascript" src="Public/Admin/js/effect.js"></script>
<script type="text/javascript" src="Public/Admin/js/common.js"></script>
</head>

<body class="mainbody">
<!--导航栏-->
<div class="location">
	<a href="javascript:history.back(-1);" class="back"><i></i><span>返回上一页</span></a>
    <a href="<?php echo U('Index/index')?>" class="home" target="_blank"><i></i><span>首页</span></a>
    <i class="arrow"></i>
    <span>品牌管理</span>
    <i class="arrow"></i>
    <span>品牌列表</span>
</div>
<!--/导航栏-->

<!--工具栏-->
<div id="floatHead" class="toolbar-wrap" style="height: 52px;">
  <div class="toolbar" style="width: 1693px;">
    <div class="box-wrap">
      <a class="menu-btn"></a>
      <div class="l-list">
        <ul class="icon-list">
          <li><a class="add" href="<?php echo U('Brand/add')?>"><i></i><span>新增</span></a></li>
        </ul>
      </div>
    </div>
  </div>
</div>
<!--/工具栏-->

<!--列表-->
<div class="table-container">
<form action="<?php echo U('Tag/btnDelete')?>" method="post" id="formBox">
  <!--隔行变色是用js控制的-->
  <table width="100%" border="0" cellspacing="0" cellpadding="0" class="ltable">
    <tbody><tr class="odd_bg">
      <th align="center" width="12%">品牌ID</th>
      <th align="left" width="12%">品牌名称</th>
      <th align="left">品牌Logo</th>   
      <th align="center" width="6%">是否热门</th>
      <th align="center" width="6%">排序</th>
      <th width="12%">操作</th>
    </tr>
  					
	<?php foreach ($data as $v){?>
    <tr>
      <td align="center"><?php echo $v['bid']?></td>
      <!--品牌名称-->
      <td align="left"><?php echo $v['bname']?></td>
      <!-- logo-->
      <td align="left">
      		<?php if( $v['logo'] == '' ){?>
                
      			<img src="Public/Admin/images/pic_bg.png" width="50" height="25"/>
      		<?php }else{?>
      			<img src="<?php echo $v['logo']?>" width="50" height="25"/>
      		
               <?php }?>
      </td>    
      <!--是否热门-->  
      <?php if( $v['is_hot'] == 1 ){?>
                    
      	   <td align="center">是</td>
      <?php }else{?>
      	   <td align="center">否</td>
      
               <?php }?>
      <!--排序-->      
      <td align="center"><?php echo $v['sort']?></td>
      <!--操作-->
      <td align="center">
      	<!--<a href="<?php echo U('TypeAttr/index',array('bid'=>$v['bid']))?>">属性列表</a>-->
		<a href="<?php echo U('edit',array('bid'=>$v['bid']))?>">编辑</a>
		<a href="javascript:if(confirm('确认删除吗？')) location.href='<?php echo U('del',array('bid'=>$v['bid']))?>';">删除</a>
      </td>
    </tr>
    <?php }?> 
  </tbody></table>
  </form>
  
</div>
<!--/列表-->

<!--内容底部-->
<!--高20的空间-->
<div class="line20"></div>
<!--分页-->
<div class="pagination">
	<ul>
  		<?php echo $page?>
	</ul>
</div>
<!--/内容底部-->
</body>
</html>
